Now that we have pseudo-code, writing the C++ code is as simple as "translating" your pseudo-code into C++.